﻿using BunnyEater.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BunnyEater.Domain.SystemManagement
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("User")]
    public class User : BaseEntity
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string? Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string? Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string? NickName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool UserGender { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string? MobilePhoneNumber { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? Telephone { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime Birthday { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }

        /// <summary>
        /// 机构Id
        /// </summary>
        public string? DeptId { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        public string? EmployeeNumber { get; set; }

        /// <summary>
        /// 是否在线
        /// </summary>
        public bool IsOnLine { get; set; }

        /// <summary>
        /// 状态true启用，false禁用
        /// </summary>
        public bool State { get; set; } = false;

        /// <summary>
        /// 最后在线时间
        /// </summary>
        public DateTime LastLoginAt { get; set; }
    }
}
